package com.chixing.ih.module.task.pojo.DTO;

import com.chixing.ih.module.task.pojo.Reply;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/10/3 20:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CommentDTO implements Serializable {

    @ApiModelProperty(value = "评论id", required = true)
    private Long id;

    @ApiModelProperty(value = "评论内容", required = true)
    private String commContext;

    @ApiModelProperty(value = "评论状态", required = true)
    private Integer commState;

    @ApiModelProperty(value = "创建时间", required = false)
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date commCreateTime;

    @ApiModelProperty(value = "删除时间", required = false)
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date commDeleteTime;

    @ApiModelProperty(value = "任务id", required = true)
    private Long taskId;

    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    @ApiModelProperty(value = "逻辑删除", required = false)
    private Integer logicalDeletion;

    @ApiModelProperty(value = "二级评论",required = false)
    private List<Reply> secondComments;

    @ApiModelProperty(value = "三级评论",required = false)
    private List<Reply> thirdComments;


}
